import Ember from 'ember';

export default Ember.Controller.extend({
	queryParams:["id"],
	id: null,
	actions: {
		check() {
			var phoneNumber = this.get("model").address.phoneNumber;
			if (phoneNumber.length > 11) {
				this.set("model.address.phoneNumber", phoneNumber.substring(0, phoneNumber.length - 1));
			}
		}
	}
});
